//
//  FoundCollectionViewCell.m
//  Community
//
//  Created by YaSha_Tom on 2018/12/20.
//  Copyright © 2018年 YaSha-Tom. All rights reserved.
//

#import "FoundCollectionViewCell.h"
#import <Masonry.h>
@interface FoundCollectionViewCell ()

@end

@implementation FoundCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self initUI];
    }
    return self;
}
- (void)initUI {
    self.headerImage = [[UIImageView alloc]init];
    [self addSubview:self.headerImage];
    [self.headerImage mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.mas_top).offset(0);
        make.centerX.mas_equalTo(self.mas_centerX);
        make.size.mas_equalTo(CGSizeMake(80, 80));
    }];
    
    self.nameLabel = [[UILabel alloc]init];
    self.nameLabel.text  = @"中国";
    self.nameLabel.textAlignment = NSTextAlignmentCenter;
    [self addSubview:self.nameLabel];
    [self.nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.headerImage.mas_bottom).offset(10);
        make.centerX.mas_equalTo(self.mas_centerX);
        make.size.mas_equalTo(CGSizeMake(375, 20));
    }];
}

@end
